import axios from '@/utils/request';

//注册
export function register(user: object) {
    return axios({
        url: "/user/user/web/register",
        method: "post",
        data: user,
    });
}

//判断手机号是否已经注册
export function mobileIsRegister(mobile: string) {
    return axios({
        url: "/user/user/web/mobileIsRegister/" + mobile,
        method: "get",
        data: mobile,
    });
}

//发送验证码
export function sendCode(code: string) {
    return axios({
        url: "/thirdParty/sms/send/" + code,
        method: "get",
    });
}